package com.leancloud.home.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.aries.ui.view.title.TitleBarView;
import com.leancloud.home.R;

import tech.com.commoncore.base.BaseTitleActivity;
import tech.com.commoncore.utils.OnNoDoubleClickListener;

/**
 * 封闭基金投资损益
 */
public class EnclosedFundActivity extends BaseTitleActivity {


    private android.widget.EditText etBuyingPrice;
    private android.widget.EditText etBonusPrice;
    private android.widget.EditText etSellingPrice;
    private android.widget.EditText etSellTheUnit;
    private android.widget.EditText etInterchangeFees;
    private android.widget.Button btnStatr;
    private android.widget.Button btnAgain;
    private android.widget.TextView tvProfitAndLoss;

    @Override
    public void setTitleBar(TitleBarView titleBar) {
        titleBar.setTitleMainText("封闭基金投资损益");

    }

    @Override
    public int getContentLayout() {
        return R.layout.home_activity_enclosed_fund;
    }

    @Override
    public void initView(Bundle savedInstanceState) {

        etBuyingPrice = (EditText) findViewById(R.id.et_buying_price);
        etBonusPrice = (EditText) findViewById(R.id.et_bonus_price);
        etSellingPrice = (EditText) findViewById(R.id.et_selling_price);
        etSellTheUnit = (EditText) findViewById(R.id.et_sell_the_unit);
        etInterchangeFees = (EditText) findViewById(R.id.et_interchange_fees);
        btnStatr = (Button) findViewById(R.id.btn_statr);
        btnAgain = (Button) findViewById(R.id.btn_again);
        tvProfitAndLoss = (TextView) findViewById(R.id.tv_profit_and_loss);





        //开始计算
        btnStatr.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });
        //重新计算
        btnAgain.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });
    }
}
